package org.bugjail.integration.mantis.data;

public class CR {
	private int id;
	private int status;
	private String summary;
	private String handler;
	private String reporter;

	public String getStatusColor() {
		String result = "FFFFFF";
		switch (status) {
		case 10: result = "ECD78B"; break;//"NEW";
		case 1: result = "ECA78B"; break;//"ON_HOLD_INT";
		case 190: result = "ECA78B"; break;//"ON_HOLD_INT";
		case 2: result = "ECA78B"; break;//"ON_HOLD_EXT";
		case 195: result = "ECA78B"; break;//"ON_HOLD_EXT";
		case 3: result = "ECA78B"; break;//"ON_HOLD_REVISION";
		case 185: result = "ECA78B"; break;//"ON_HOLD_REVISION";
		case 100: result = "D0EC8B"; break;//"ON_ANALYSIS";
		case 105: result = "FFFFFF"; break;//"ANALYSIS_COMPLETE";
		case 110: result = "A0EC8B"; break;//"ASSIGNED_FOR_DEVELOPMENT";
		case 120: result = "8BECA7"; break;//"ON_DEVELOPMENT";
		case 130: result = "8BECD7"; break;//"DEVELOPMENT_COMPLETE";
		case 140: result = "8BD0EC"; break;//"BASELINED";
		case 150: result = "FF5D5D"; break;//"REOPENED";
		case 155: result = "8BE0AC"; break;//"TESTED SIT";
		case 156: result = "8BE0AC"; break;//"TESTED DIT";
		case 160: result = "8BE0AC"; break;//"VERIFIED";
		case 170: result = "D78BEC"; break;//"ACCEPTED";
		case 180: result = "AFAFAF"; break;//"ABORTED";
		case 200: result = "D7D7D7"; break;//"CLOSED";
		}
		return result;
	}

	public String getStatusName() {
		String result = "-";
		switch (status) {
		case 10: result = "NEW"; break;
		case 1: result = "ON_HOLD_INT"; break;
		case 190: result = "ON_HOLD_INT"; break;
		case 2: result = "ON_HOLD_EXT"; break;
		case 195: result = "ON_HOLD_EXT"; break;
		case 3: result = "ON_HOLD_REVISION"; break;
		case 185: result = "ON_HOLD_REVISION"; break;
		case 100: result = "ON_ANALYSIS"; break;
		case 105: result = "ANALYSIS_COMPLETE"; break;
		case 110: result = "ASSIGNED_FOR_DEVELOPMENT"; break;
		case 120: result = "ON_DEVELOPMENT"; break;
		case 130: result = "DEVELOPMENT_COMPLETE"; break;
		case 140: result = "BASELINED"; break;
		case 150: result = "REOPENED"; break;
		case 155: result = "TESTED SIT"; break;
		case 156: result = "TESTED DIT"; break;
		case 160: result = "VERIFIED"; break;
		case 170: result = "ACCEPTED"; break;
		case 180: result = "ABORTED"; break;
		case 200: result = "CLOSED"; break;
		}
		return result;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getHandler() {
		return handler;
	}

	public void setHandler(String handler) {
		this.handler = handler;
	}

	public String getReporter() {
		return reporter;
	}

	public void setReporter(String reporter) {
		this.reporter = reporter;
	}
}
